import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import { Dialog, Toast } from "vant";
import Storage from "vue-ls";
import "amfe-flexible";

Vue.config.productionTip = false;
Vue.use(Dialog).use(Toast);
Vue.use(Storage, {
  //namespace: "vuejs__", // key prefix
  name: "ls", // name variable Vue.[ls] or this.[$ls],
  storage: "local" // storage name session, local, memory
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
